package com.yiku.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Project Name: kc-risk
 * Package Name: cn.kingcar.risk.biz.common.constant.enums.response
 * Function: 公共响应消息枚举
 * user: San
 * Date:2018/2/5
 */
@AllArgsConstructor
public enum CommonMessageEnum {

    /**
     * 响应消息枚举列表
     */

    SUCCESS("操作成功","SUCCESS"),
    FAIL("操作失败","FAIL"),
    DELETED_FAIL("删除失败","DELETED_FAIL"),
    UPDATE_STFP_FAIL("上传实体发票操作失败","UPDATE_STFP_FAIL"),
    GET_ORDER_DETAIL_FAIL("获取销售订单详情失败","GET_ORDER_DETAIL_FAIL"),
    ADD_SALE_BILL_VOUCH_TO_U8_FAIL("发票实体类新增至u8失败","ADD_SALE_BILL_VOUCH_TO_U8_FAIL"),
    CREATE_SALE_BILL_VOUCH_FAIL("根据发货单生成发票实体类失败","CREATE_SALE_BILL_VOUCH_FAIL"),



    SELECT_FAILURE("查询失败","SELECT_FAILURE"),


    /*****************缓存相关*********************/
    CACHE_SAVE_ERROR("缓存保存错误","CACHE_SAVE_ERROR"),
    CACHE_DELETE_ERROR("缓存删除错误","CACHE_DELETE_ERROR"),

    NOTIFY_MANUAL_SEND_FAIL("指定批次结果消息发送失败","NOTIFY_MANUAL_SEND_FAIL"),

    /*****************DUBBO服务调用*********************/
    DUBBO_EXCEPTION("DUBBO服务调用异常","DUBBO_EXCEPTION"),
    DUBBO_FLAG_FALSE("DUBBO服务调用失败","DUBBO_FLAG_FALSE"),

    SYS_PARAM_VALUE_GET_VALUE("系统参数取值失败","SYS_PARAM_VALUE_GET_VALUE");
    @Getter
    private  String msg;

    @Getter
    private String code;


}
